/*
 * This is a simple in-memory store implementation that is ONLY intended for use with
 * calendar samples running locally in the browser with no external data source. Under
 * normal circumstances, stores that use a MemoryProxy are read-only and intended only
 * for displaying data read from memory. In the case of the calendar, it's still quite
 * useful to be able to deal with in-memory data for sample purposes (as many people 
 * may not have PHP set up to run locally), but by default, updates will not work since the
 * calendar fully expects all CRUD operations to be supported by the store (and in fact
 * will break, for example, if phantom records are not removed properly). This simple
 * class gives us a convenient way of loading and updating calendar event data in memory,
 * but should NOT be used outside of the local samples.
 */


Ext.define('Ext.calendar.data.MemoryEventStoreT', {
    extend: 'Ext.data.Store',
    fields: [
        { name: 'id', type: 'int' },
        { name: 'priority', type: 'int' },
        { name: 'title', type: 'string' },
        { name: 'startDate', type: 'date' },
        { name: 'endDate', type: 'date' },
        { name: 'telephone', type: 'string' },
        { name: 'email', type: 'string' },
        { name: 'remark', type: 'string' },
        { name: 'isAllDay', type: 'int' },
        { name: 'reminder', type: 'int' }
    ],
    data  : [{
        "id": 1001,
        "priority": 1,
        "title": "Vacation2",
        "startDate":'2014-02-02',
        "endDate": '2014-02-20',
        "telephone": "un" ,
        "email":"12352@126.com",
        "remark":"asas"   ,
        isAllDay:0,
        reminder:0
    }, {
        "id": 1003,
        "priority": 3,
        "title": "Vacation3",
        "startDate":'2014-02-25',
        "endDate": '2014-02-28',
        "telephone": "un" ,
        "email":"12352@126.com",
        "remark":"asas"  ,
        isAllDay:1,
        reminder:0
    }, {
        "id": 1002,
        "priority": 2,
        "title": "Vacation2",
        "startDate":'2014-02-23',
        "endDate": '2014-02-24',
        "telephone": "un" ,
        "email":"12352@126.com",
        "remark":"asas" ,
        isAllDay:1,
        reminder:1
    }]
});